#ifndef BERNOULLINODE_H
#define BERNOULLINODE_H

#include "node.h"

class BernoulliNode : public Node
{
private:

    int pNode;

    virtual bool inRange(double v);

public:

    BernoulliNode(double val);
    BernoulliNode(QString label, double val, double sd, Node * pNode, bool isObserved = false);

    void setPNode(Node * node);

    virtual double computeLogLikelihood();
};

#endif // BERNOULLINODE_H
